/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-24
 * Time:15:05
 */
public class Vehicle {
    private String brand;
    private String color;
    private double speed;

    public Vehicle(String brand, String color) {
        this.brand = brand;
        this.color = color;
        this.speed = 0;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getSpeed() {
        return speed;
    }

    public void run(){
        System.out.println(this.color+" "+this.brand+" is running at "+this.speed+"m/s");
    }
}
